package _9Test;

public class Car {
    boolean status;

    public class Engine{
        public void  work()
        {
            if(!(status))
            {
                System.out.println("发动机飞速工作");
            }
            else
                System.out.println("发动机停止工作");
        }


    }

    public Car(boolean status) {
        this.status = status;
    }

    public Car() {
    }
}
